<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    
    <title>My JSP starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="css/zbCss/pageTable.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="../../style/zbCss/defaultStyle.css" />
	<link rel="stylesheet" type="text/css" href="../../style/zbCss/easyui.css" />
	<link rel="stylesheet" type="text/css" href="../../style/zbCss/icon.css" />
	<link rel="stylesheet" type="text/css" href="../../style/zbCss/pageTable.css" />
	<link rel="stylesheet" type="text/css" href="../../style/fzjc/fzjc.css" />

	 <script type="text/javascript" src="../../lib/data.js"></script>
	  <script type="text/javascript" src="../../js/yjzsfunctiondlg/zbgl.js"></script>
	   <script type="text/javascript" src="../../js/yjdcfunctiondlg/sbgl.js"></script>
	<script type="text/javascript" src="../../lib/easyui/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="../../lib/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../../lib/easyui/json2.js"></script>
	<script type="text/javascript"src="../../My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript">
		$(function(){
		//设备管理
			initYjdcSbgl_table();
			setOption('china','yjdcSbglShen');
			setSltDefaultVal("yjdcSbglShen",'420000');
			$("#yjdcSbglShen").attr("disabled","disabled");
			changeShenItem(document.getElementById("yjdcSbglShen").value,'yjdcSbglShi');
			changeShenItem(document.getElementById("yjdcSbglShen").value,'yjdcSbglAddShi');
			$("#YjdcSbglXiangqingDlg").dialog({
				draggable : true,
				top : 50,
				left : 100,
				title : "设备详情",
				collapsible : true
			});
			$("#YjdcSbglXiangqingDlg").dialog("close");
			
			$("#YjdcSbglAddDlg").dialog({
				draggable : true,
				top : 50,
				left : 100,
				title : "设备详情",
				collapsible : true
			});
			$("#YjdcSbglAddDlg").dialog("close");
			
			//出库管理
			initYjdcCkgl_table();
			setOption('china','yjdcCkglShen');
			setSltDefaultVal("yjdcCkglShen",'420000');
			$("#yjdcCkglShen").attr("disabled","disabled");
			changeShenItem(document.getElementById("yjdcCkglShen").value,'yjdcCkglShi');
			$("#YjdcCkglDlg").dialog({
				draggable : true,
				top : 50,
				left : 100,
				title : "出库信息填写",
				collapsible : true
			});
			$("#YjdcCkglDlg").dialog("close");
			
			//入库管理
			initYjdcRkgl_table();
			setOption('china','yjdcRkglShen');
			setSltDefaultVal("yjdcRkglShen",'420000');
			$("#yjdcRkglShen").attr("disabled","disabled");
			changeShenItem(document.getElementById("yjdcRkglShen").value,'yjdcRkglShi');
			$("#YjdcRkglDlg").dialog({
				draggable : true,
				top : 50,
				left : 100,
				title : "出库信息填写",
				collapsible : true
			});
			$("#YjdcRkglDlg").dialog("close");
			
			//tab页切换
			//切换调用函数
			$('#tabsbgldiv').tabs({
				onSelect:function(title){
					if(title=="设备管理"){
						$("#yjdcSbgl_table").datagrid('resize');
					}
					if(title=="出库管理"){
						$("#yjdcCkgl_table").datagrid('resize');
					}
					if(title=="入库管理"){
						$("#yjdcRkgl_table").datagrid('resize');
					}
				}
			});
		})
	</script>
  </head>
  
  <body >
	<div id="tabsbgldiv"  class="easyui-tabs" style="width:826px;height: 500px">
		<div title="设备管理" style="padding: 0px;height: 300px;width: 500px;">
			省：<select id="yjdcSbglShen" onchange="changeShenItem(this.value,'yjdcSbglShi')"><option  selected="selected" value="" >请选择省</option></select>
			市：<select id="yjdcSbglShi" onchange="changeShiItem(this.value,'yjdcSbglXian')"><option  selected="selected" value="">请选择市</option></select>
			县：<select id="yjdcSbglXian" onchange="changeXianItem(this.value,'zhen')"><option  selected="selected" value="">请选择县</option></select>
			<br/>
			资源类型：<select id="yjdcSbglZYLX" >
				<option selected="selected" value="">请选择</option>
				<option  value="2">车辆</option>
				<option  value="3">设备</option>
				<option value="4">卫星资源</option>
			</select>
			设备状态：<select id="yjdcSbglSBZT">
			<option value="" selected="selected">请选择</option>
			<option value="1">正常</option>
			<option value="2">损坏</option>
			</select>
			<input type="button"value="查询" class="btn_2z" style="margin-left:300px"
										onclick="querySbgl()" />
			<input type="button"value="添加" class="btn_2z" 
										onclick="AddYjdcSB()" />
			<table id="yjdcSbgl_table" width="820px" height="450px"></table>
		</div>
		
		
		<div title="出库管理" style="padding: 0px;height: 300px;width: 500px;">
			省：<select id="yjdcCkglShen" onchange="changeShenItem(this.value,'yjdcCkglShi')"><option  selected="selected" value="" >请选择省</option></select>
			市：<select id="yjdcCkglShi" onchange="changeShiItem(this.value,'yjdcCkglXian')"><option  selected="selected" value="">请选择市</option></select>
			县：<select id="yjdcCkglXian" onchange="changeXianItem(this.value,'zhen')"><option  selected="selected" value="">请选择县</option></select>
			资源类型：<select id="yjdcCkglZYLX" >
				<option selected="selected" value="">请选择</option>
				<option  value="1">人员</option>
				<option  value="2">车辆</option>
				<option  value="3">设备</option>
				<option value="4">卫星资源</option>
			</select>
			<input type="button"value="查询" class="btn_2z"
										onclick="querySbByState(0)" />
			<table id="yjdcCkgl_table" width="820px" height="450px"></table>
		</div>
		<div title="入库管理" style="padding: 0px;height: 300px;width: 500px;">
			省：<select id="yjdcRkglShen" onchange="changeShenItem(this.value,'yjdcRkglShi')"><option  selected="selected" value="" >请选择省</option></select>
			市：<select id="yjdcRkglShi" onchange="changeShiItem(this.value,'yjdcRkglXian')"><option  selected="selected" value="">请选择市</option></select>
			县：<select id="yjdcRkglXian" onchange="changeXianItem(this.value,'zhen')"><option  selected="selected" value="">请选择县</option></select>
			资源类型：<select id="yjdcRkglZYLX" >
				<option selected="selected" value="">请选择</option>
				<option  value="1">人员</option>
				<option  value="2">车辆</option>
				<option  value="3">设备</option>
				<option value="4">卫星资源</option>
			</select>
			<input type="button"value="查询" class="btn_2z"
										onclick="querySbByState(1)" />
			<table id="yjdcRkgl_table" width="820px" height="450px"></table>
		</div>
	</div>
	
	<div id="YjdcSbglXiangqingDlg" style="width:550px;height:300px;padding-top:10px;padding-left:10px">
		<table>
			<tr>
				<td>所属单位：</td><td><input type="text" id="yjzy01020"/></td><td>类型：</td><td><select id="yjzy01030" style="width:100%" >
				<option  value="1">人员</option>
				<option  value="2">车辆</option>
				<option  value="3">设备</option>
				<option value="4">卫星资源</option>
			</select></td>
			</tr>
			<tr>
				<td>名称：</td><td><input type="text" id="yjzy01040"/></td><td>编号：</td><td><input type="text" id="yjzy01050"/></td>
			</tr>
			<tr>
				<td>设备状态：</td><td><select id="yjzy01060" style="width:100%">
			<option value="1">正常</option>
			<option value="0">损坏</option>
			</select></td><td>负责人：</td><td><input type="text" id="yjzy01070"/></td>
			</tr>
			<tr>
				<td>负责人联系方式：</td><td><input type="text" id="yjzy01080"/></td><td>使用状态：</td><td><input type="text" id="yjzy01090"/></td>
			</tr>
			<tr>
				<td>备注：</td><td><input type="text" id="yjzy01140"/></td><td>所属区域：</td><td><input type="text" id="yjzy01010"/></td>
			</tr>
			<tr id="btnForSbgl">
					<td colspan="4" align="center"><input id="okButton"  type="button" value="更新" class="btn_2z"
					onclick="updateSBForSbgl()" /><input type="button" value="重置" class="btn_2z"
					onclick="" /></td>
				</tr>
		</table>
	</div>
	
	<div id="YjdcSbglAddDlg" style="width:550px;height:300px;padding-top:10px;padding-left:10px">
		<table>
			<tr>
				<td>市：</td><td><select id="yjdcSbglAddShi" onchange="changeShiItem(this.value,'yjdcSbglAddXian')" style="width:100%"><option  selected="selected" value="">请选择市</option></select></td>
				<td>县：</td><td><select id="yjdcSbglAddXian" onchange="changeShiItem(this.value,'zhen')" style="width:100%"><option  selected="selected" value="">请选择县</option></select></td>
			</tr>
			<tr>
				<td>所属单位：</td><td><input type="text" id="addyjzy01020" style="width:100%"/></td><td>类型：</td><td><select id="addyjzy01030" style="width:100%" >
				<option  value="1">人员</option>
				<option  value="2">车辆</option>
				<option  value="3">设备</option>
				<option value="4">卫星资源</option>
			</select></td>
			</tr>
			<tr>
				<td>名称：</td><td><input type="text" id="addyjzy01040" style="width:100%"/></td><td>编号：</td><td><input type="text" id="addyjzy01050" style="width:100%"/></td>
			</tr>
			<tr>
				<td>设备状态：</td><td><select id="addyjzy01060" style="width:100%">
			<option value="1">正常</option>
			<option value="0">损坏</option>
			</select></td><td>负责人：</td><td><input type="text" id="addyjzy01070" style="width:100%"/></td>
			</tr>
			<tr>
				<td>负责人联系方式：</td><td><input type="text" id="addyjzy01080" style="width:100%"/></td><td>使用状态：</td>
				<td><select id="addyjzy01090" style="width:100%">
			<option value="1">正使用</option>
			<option value="0">未使用</option>
			</select></td>
			</tr>
			<tr>
				<td>备注：</td><td colspan="3"><input type="text" id="addyjzy01140" size="60"/></td>
			</tr>
			<tr id="btnForSbgl">
					<td colspan="4" align="center"><input id="okButton"  type="button" value="添加" class="btn_2z"
					onclick="AddYjdcSBForSbgl()" /><input type="button" value="重置" class="btn_2z"
					onclick="" /></td>
				</tr>
		</table>
	</div>
	
	
	<div id="YjdcCkglDlg" style="width:500px;height:200px;padding-top:10px;padding-left:10px">
		<table>
			<tr style="display:none">
				<td>资源编号：</td><td colspan="3"><input type="text" id="yjzy02050" style="width:100%"/></td>
			</tr>
			<tr>
				<td>出库时间：</td><td><input id="yjzy02100"  class="Wdate" type="text" style="width:100%" onfocus="WdatePicker({startDate:' 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" /></td>
				<td>使用人：</td><td><input type="text" id="yjzy02110" style="width:100%"/></td>
			</tr>
			<tr>
				<td>使用单位：</td><td colspan="3"><input type="text" id="yjzy02120" style="width:100%"/></td>
			</tr>
			<tr>
					<td colspan="4" align="center"><input id="okButton"  type="button" value="填入" class="btn_2z"
					onclick="AddCkInfoForCkgl()" /><input type="button" value="重置" class="btn_2z"
					onclick="resetCkInfoDlg()" /></td>
			</tr>
		</table>
	</div>
	
	
	<div id="YjdcRkglDlg" style="width:500px;height:250px;padding-top:10px;padding-left:10px">
		<table>
			<tr style="display:none">
				<td><input type="text" id="yjzy02000" /></td>
			</tr>
			<tr>
				<td>资源编号：</td><td colspan="3"><input type="text" id="rkyjzy02050" style="width:100%"/></td>
			</tr>
			<tr>
				<td>出库时间：</td><td><input id="rkyjzy02100"  type="text" style="width:100%" /></td>
				<td>使用人：</td><td><input type="text" id="rkyjzy02110" style="width:100%"/></td>
			</tr>
			<tr>
				<td>使用单位：</td><td colspan="3"><input type="text" id="rkyjzy02120" style="width:100%"/></td>
			</tr>
			<tr>
				<td>入库时间：</td><td colspan="3"><input id="rkyjzy02090"  class="Wdate" type="text" style="width:100%" onfocus="WdatePicker({startDate:' 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" /></td>
			</tr>
			<tr>
				<td>使用情况：</td><td colspan="3"><input type="text" id="rkyjzy02130" style="width:100%"/></td>
			</tr>
			<tr>
				<td>备注：</td><td colspan="3"><input type="text" id="yjzy02140" style="width:100%"/></td>
			</tr>
			<tr>
					<td colspan="4" align="center"><input id="okButton"  type="button" value="填入" class="btn_2z"
					onclick="AddRkInfoForRkgl()" /><input type="button" value="重置" class="btn_2z"
					onclick="resetRkInfoDlg()" /></td>
			</tr>
		</table>
	</div>
</body>